package com.sc.nft.vo.redeemcard;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.sc.nft.enums.UserRedeemCardStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author JYT
 * @create 2024/5/9 14:04
 */
@Data
public class UserRedeemCardPageVO {
    /**
     * 兑换卡Id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 商品标题
     */
    @ApiModelProperty(value = "商品标题")
    private String title;
    /**
     * 商品封面
     */
    @ApiModelProperty(value = "商品封面")
    private String img;
    /**
     * 到期时间
     */
    @ApiModelProperty(value = "到期时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime validityTime;
    /**
     * 状态
     */
    @ApiModelProperty(value = "状态 UNUSED  未使用,USED  已使用,EXPIRED  已过期")
    private UserRedeemCardStatusEnum status;
}
